<template>
    <div class="bankruptcy">
        <y-header></y-header>
        <div class="w store-content">
            <div class="gray-box">
                <div class="gallery-wrapper">
                    <div class="gallery">
                        <div class="thumbnail">
                            <ul>
                                <li v-for="(item,i) in small" :key="i" :class="{on:big===item}" @click="big=item">
                                    <img v-lazy="item" :alt="product.productName">
                                </li>
                            </ul>
                        </div>
                        <div class="thumb">
                            <div class="big">
                                <img src="https://liquidation-1.oss-cn-hangzhou.aliyuncs.com/3a652565f4e091d218f5dff37e732c52.jpg"
                                     alt="破产流程">
                            </div>
                        </div>
                    </div>
                </div>
                <!--右边-->
                <div class="banner">
                    <div class="sku-custom-title">
                        <h4>证券集合类投票征集托管系统</h4>
                        <h6>
                            <span style="text-align: center;width: 100%">小股东集合投票权征集托管</span>
                        </h6>
                    </div>
                    <div class="num">
                        <span class="params-name">主要解决小股东维权难、起诉难、成本高等问题，通过小股东集合投票权征集托管进行维权。</span>
                    </div>
                    <div class="buy">
                        <el-button type="primary" style="margin-right: 30px" @click="goReceiver">管理端口</el-button>
                        <el-popover
                                placement="right"
                                trigger="click">
                            <el-card class="box-card">
                                <div>
                                    <img src="https://liquidation-1.oss-cn-hangzhou.aliyuncs.com/522c2a12e68792c610b4ad19670d403d.png">
                                </div>
                            </el-card>
                            <el-button type="success" slot="reference">申报端口</el-button>
                        </el-popover>
                    </div>
                </div>
            </div>
            <!--产品信息-->
            <div class="item-info">
                <y-shelf title="产品介绍">
                    <div slot="content">
                        <div class="img-item" v-if="productMsg">
                            <div v-html="productMsg">{{ productMsg }}</div>
                        </div>
                        <div class="no-info" v-else>
                            <img src="https://liquidation-1.oss-cn-hangzhou.aliyuncs.com/f055dc24f1306ed2b9205c55a03659f1.png">
                            <br>
                        </div>
                    </div>
                </y-shelf>
            </div>
        </div>
        <y-footer></y-footer>
    </div>
</template>
<script>
    import YShelf from '../components/shelf'
    import YButton from '../components/YButton'
    import YHeader from './common/header'
    import YFooter from './common/footer'

    export default {
        data() {
            return {
                productMsg: "",
                small: [],
                big: '',
                product: {
                    salePrice: 0
                },
                productNum: 1,
                userId: ''
            }
        },
        computed: {},
        methods: {
            goReceiver() {
                window.open("http://www.fahuidata.com/receiver/share/login");
            },
            openCreditor() {
                this.$notify({
                    title: 'HTML 片段',
                    dangerouslyUseHTMLString: true,
                    message: "<strong>这是 <i>HTML</i> 片段</strong>"
                });
            }
        },
        components: {
            YHeader,
            YFooter,
            YShelf,
            YButton
        },
        created() {
        }
    }
</script>
<style lang="scss" scoped>
    @import "../assets/style/mixin";

    .bankruptcy {
        display: flex;
        flex-direction: column;
    }

    .store-content {
        clear: both;
        width: 1220px;
        min-height: 600px;
        padding: 0 0 25px;
        margin: 0 auto;
    }

    .gray-box {
        display: flex;
        padding: 60px;
        margin: 20px 0;

        .gallery-wrapper {
            .gallery {
                display: flex;
                width: 540px;

                .thumbnail {
                    li:first-child {
                        margin-top: 0px;
                    }

                    li {
                        @include wh(80px);
                        margin-top: 10px;
                        padding: 12px;
                        border: 1px solid #f0f0f0;
                        border: 1px solid rgba(0, 0, 0, .06);
                        border-radius: 5px;
                        cursor: pointer;

                        &.on {
                            padding: 10px;
                            border: 3px solid #ccc;
                            border: 3px solid rgba(0, 0, 0, .2);
                        }

                        img {
                            display: block;
                            @include wh(100%);
                        }
                    }
                }

                .thumb {
                    .big {
                        margin-left: 20px;
                    }

                    img {
                        display: block;
                        @include wh(440px)
                    }
                }
            }
        }

        // 右边
        .banner {
            width: 450px;
            margin-left: 10px;

            h4 {
                font-size: 24px;
                line-height: 1.25;
                color: #000;
                margin-bottom: 13px;
            }

            h6 {
                font-size: 14px;
                line-height: 1.5;
                color: #bdbdbd;
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            .sku-custom-title {
                overflow: hidden;
                text-align: center;
                padding: 8px 8px 18px 10px;
                position: relative;
            }

            .params-name {
                padding-right: 20px;
                font-size: 14px;
                color: #8d8d8d;
                line-height: 36px;
            }

            .num {
                padding: 29px 0 8px 10px;
                border-top: 1px solid #ebebeb;
                display: flex;
                align-items: center;
            }

            .buy {
                position: relative;
                border-top: 1px solid #ebebeb;
                padding: 30px 0 0 10px;
            }
        }
    }

    .item-info {

        .gray-box {
            padding: 0;
            display: block;
        }

        .img-item {
            width: 1220px;
            // padding: 1vw;
            text-align: center;

            img {
                width: 100%;
                height: auto;
                display: block;
            }
        }
    }

    .no-info {
        text-align: center;
        font-size: 30px;
    }

    .price {
        display: block;
        color: #d44d44;
        font-weight: 700;
        font-size: 16px;
        line-height: 20px;
        text-align: right;

        i {
            padding-left: 2px;
            font-size: 24px;
        }
    }
</style>
